package models;

import play.db.jpa.*;
import play.data.validation.*;
import javax.persistence.*;

@Entity
@Table(name="UserProject")
public class UserProject extends Model {
    
    @Required
    //@Match(value="^\\w*$", message="Not a valid username")
    public String project_id;
    
    @Required
    public String user_id;
   
    public UserProject(String project_id, String user_id) {
        this.project_id = project_id;
        this.user_id = user_id;
    }

    public String toString()  {
        return "User(" + project_id + ")";
    }
    
}
